package Demo1;

public class Animal {
    private int age;
    private int weight;
    private String name;

    public void setAge(int age ){
        this.age=age;
    }

    public int getAge(){
        return age;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getName(){
        return name;
    }

    public void setWeight(int weight){
        this.weight=weight;
    }

    public int getWeight() {
        return weight;
    }
}
